/**
 * createor: zc
 * email: zc8023zs@163.com
 * create_time: 2020/3/14 13:46:24
 */
import request from '@/utils/request'

export function getSysDeptList(query) {
  return request({
    url: '/system/sysdept/getSysDeptList',
    method: 'post',
    params: query
  })
}

export function createObj(data) {
  return request({
    url: '/system/sysdept/addSysDept',
    method: 'post',
    params:data
  })
}

export function updateObj(data) {
  return request({
    url: '/system/sysdept/updateSysDept',
    method: 'post',
    params:data
  })
}
export function deleteObj(data) {
  return request({
    url: '/system/sysdept/deleteSysDept',
    method: 'post',
    params:{id:data.id}
  })
}
